#pragma GCC optimize(2)
#include <iostream>
#include <algorithm>
#include <cstring>
#include <string>
#include <map>
#include <vector>

using namespace std;
using LL = long long;

int main(){
    freopen("in.txt", "r", stdin);
    freopen("out.txt", "w", stdout);
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    string s;
    cin >> s;

    int len = s.length();
    if(len == 1){
        cout << s << s << s << s << s << s << '\n';
    }else if(len == 2){
        cout << s << s << s << '\n';
    }else{
        cout << s << s << '\n';
    }



    return 0;
}